From 418e0c46224caf8ea41ffd01dd2129cc9f34b3c7 Mon Sep 17 00:00:00 2001 From: Dave Camp Date: Thu, 28 Mar 2002 17:05:34 +0000 Subject: [PATCH] Don't install the handler if the widget isn't realized. 2002-03-28 Dave Camp * gtk/gtktreeview.c (install_scroll_sync_handler): Don't install the handler if the widget isn't realized. --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtktreeview.c | 3 +++ 7 files changed, 33 insertions(+) diff --git a/ChangeLog b/ChangeLog index 84479e7426..e9e0c9dba3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-03-28 Dave Camp + + * gtk/gtktreeview.c (install_scroll_sync_handler): Don't install + the handler if the widget isn't realized. + 2002-03-28 Jakub Steiner * gtk/stock-icons/stock_font*: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 84479e7426..e9e0c9dba3 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2002-03-28 Dave Camp + + * gtk/gtktreeview.c (install_scroll_sync_handler): Don't install + the handler if the widget isn't realized. + 2002-03-28 Jakub Steiner * gtk/stock-icons/stock_font*: diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 84479e7426..e9e0c9dba3 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2002-03-28 Dave Camp + + * gtk/gtktreeview.c (install_scroll_sync_handler): Don't install + the handler if the widget isn't realized. + 2002-03-28 Jakub Steiner * gtk/stock-icons/stock_font*: diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 84479e7426..e9e0c9dba3 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2002-03-28 Dave Camp + + * gtk/gtktreeview.c (install_scroll_sync_handler): Don't install + the handler if the widget isn't realized. + 2002-03-28 Jakub Steiner * gtk/stock-icons/stock_font*: diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 84479e7426..e9e0c9dba3 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2002-03-28 Dave Camp + + * gtk/gtktreeview.c (install_scroll_sync_handler): Don't install + the handler if the widget isn't realized. + 2002-03-28 Jakub Steiner * gtk/stock-icons/stock_font*: diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 84479e7426..e9e0c9dba3 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2002-03-28 Dave Camp + + * gtk/gtktreeview.c (install_scroll_sync_handler): Don't install + the handler if the widget isn't realized. + 2002-03-28 Jakub Steiner * gtk/stock-icons/stock_font*: diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 0fd6e819d9..fdd920dcc0 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -4114,6 +4114,9 @@ scroll_sync_handler (GtkTreeView *tree_view) static void install_scroll_sync_handler (GtkTreeView *tree_view) { + if (! GTK_WIDGET_REALIZED (tree_view)) + return; + if (!tree_view->priv->scroll_sync_timer) { tree_view->priv->scroll_sync_timer = -- 2.30.2